<?php

namespace App\Repositories;

use App\Models\Manager;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class ManagerRepository
 * @package App\Repositories
 * @version June 25, 2018, 9:28 am CST
 *
 * @method Manager findWithoutFail($id, $columns = ['*'])
 * @method Manager find($id, $columns = ['*'])
 * @method Manager first($columns = ['*'])
*/
class ManagerRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'realname'=>'like',
        'username'=>'like',
        'password',
        'u_status',
        'park_code',
        'avatar_url'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return Manager::class;
    }
}
